import { CoolController, BaseController } from '@cool-midway/core';
import { BroadcastRecipeEntity } from '../../entity/recipe';
import { UserInfoEntity } from '../../../user/entity/info';

/**
 * 广播-参考方
 */
@CoolController({
  api: ['add', 'delete', 'update', 'info', 'list', 'page'],
  entity: BroadcastRecipeEntity,
  // 分页查询配置
  pageQueryOp: {
    // 让title字段支持模糊查询
    keyWordLikeFields: ['name',"numeral","labels",],
    fieldEq:["parentId"],
    addOrderBy: {
			topping: "desc"
		}
  },
  // 分页查询配置
  listQueryOp: {
    // 让title字段支持模糊查询
    keyWordLikeFields: ['name',"numeral","labels",],
    fieldEq:["parentId"],
    addOrderBy: {
			topping: "desc"
		}
  },
})
export class AdminBroadcastRecipesController extends BaseController {}
